
//Symbol.hasInstance 能让我们自定义instanceof行为
class PrimitiveString {
    static [Symbol.hasInstance] (x) {
        return typeof x == 'string'
    }
}
console.log('hello'  instanceof PrimitiveString);